package JXY01;

//小蜜蜂 奖励[不同类
public class Bee extends FlyingObject implements Award{
    private int xSpeed;     //x坐标的移动速度
    private int awardType;
    public Bee(){
        image = Aircraft_Battle.bee;
        width = image.getWidth();
        height = image.getHeight();
        x = (int)(Math.random() * 400);
        y = -height;
        speed = 3;
        xSpeed = 2;
        awardType = (int) (Math.random() * 2);
    }
    public void move(){
        x += xSpeed;
        y += speed;
    }

    @Override
    public int getType() {
        return awardType;
    }
}
